﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" xmlns:my="clr-namespace:KaKaSongGame" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	mc:Ignorable="d"
	x:Class="KaKaSongGame.CastleMap"
	d:DesignWidth="640" d:DesignHeight="480">
	<UserControl.Resources>

	</UserControl.Resources>
	<Border Style="{StaticResource grayborder}">
			<Grid>
                <!--sounds-->
            <MediaElement Name="dragme" Source="/KaKaSongGame.Client;component/Sounds/card_drag.wma" AutoPlay="False"/>
            <MediaElement Name="dropme" Source="/KaKaSongGame.Client;component/Sounds/card_drop.wma" AutoPlay="False"/>
            <MediaElement Name="tingme" Source="/KaKaSongGame.Client;component/Sounds/ting.wma" AutoPlay="False"/>
            <MediaElement Name="bgme" AutoPlay="True" MediaEnded="bgme_MediaEnded"/>
            <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" x:Name="sv1" SizeChanged="sv1_SizeChanged" Padding="0">
				<!--<Grid x:Name="mapgrid" Background="AliceBlue">
				</Grid>-->
				<Canvas x:Name="mappanel" Background="AliceBlue">
					<Canvas.CacheMode>
						<BitmapCache/>
					</Canvas.CacheMode>
				</Canvas>
			</ScrollViewer>
			<!--<Button HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="click" Click="Button_Click"/>-->
			<Border >
				<my:PlayerList Width="400" VerticalAlignment="Top" HorizontalAlignment="Left" x:Name="playerlistctl"/>
			</Border>
			<Border CornerRadius="75,75,0,0" VerticalAlignment="Bottom" HorizontalAlignment="Center" Width="400" Height="150">
				<Border.Background>
					<RadialGradientBrush GradientOrigin="1.108,1.204" RadiusY="0.809" RadiusX="0.809">
						<GradientStop Color="#FF16F12E" Offset="0.12"/>
						<GradientStop Color="#22FFFFFF" Offset="0.815"/>
						<GradientStop Color="#FF898474" Offset="0.122"/>
					</RadialGradientBrush>
				</Border.Background>
				<Canvas x:Name="cardcandidategrid">
					<i:Interaction.Behaviors>
						<ei:FluidMoveBehavior AppliesTo="Children" x:Name="canvasfb1">
							<ei:FluidMoveBehavior.EaseY>
								<CircleEase EasingMode="EaseOut"/>
							</ei:FluidMoveBehavior.EaseY>
							<ei:FluidMoveBehavior.EaseX>
								<CircleEase EasingMode="EaseOut"/>
							</ei:FluidMoveBehavior.EaseX>
						</ei:FluidMoveBehavior>
					</i:Interaction.Behaviors>
					<my:ActionTimer x:Name="actiontimer" Height="100" Width="50" Canvas.Left="325" Canvas.Top="50"/>
					<Button Canvas.Top="50" Canvas.Left="260" Content="Pass!" Name="passbutton" Visibility="Collapsed" Click="Pass_Click"/>
				</Canvas>
			</Border>
		</Grid>
	</Border>
</UserControl>